import request from '@/utils/request.js';

// 查询流程表单列表
export function listForm(query) {
  return request({
    url: '/workflow/form/list',
    method: 'get',
    params: query
  });
}

// 流程表单详情
export function listFormDetail(formId) {
  return request({
    url: `/workflow/form/${formId}`,
    method: 'get'
  });
}

// 新增流程表单列表
export function addListForm(query) {
  return request({
    url: '/workflow/form',
    method: 'post',
    data: query
  });
}

// 编辑流程表单列表
export function editListForm(query) {
  return request({
    url: '/workflow/form',
    method: 'put',
    data: query
  });
}

// 流程表单删除
export function listFormRemove(formId) {
  return request({
    url: `/workflow/form/${formId}`,
    method: 'delete'
  });
}
